<?php
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
#XoopsFormSelect($caption, $name, $value=null, $size=1, $multiple=false)
#addOption($value, $name="")
#addOptionArray($options)
#XoopsFormTextArea($caption, $name, $value="", $rows=5, $cols=50)
#XoopsFormButton($caption, $name, $value="", $type="button")
$form = new XoopsThemeForm(_MD_ADDPROP, 'newpropform', 'index.php?type=prop&op=create_ok');
$form->addElement($prop_title_el = new XoopsFormText(_MD_PROP_TITLE, 'prop_title', 50, 255,''));
$form->addElement($prop_propcat_el = new XoopsFormSelect(_MD_PROP_CATEGORY, "prop_propcat"));						
foreach ($propcatarr as $propcatO){
	$prop_propcat_el->addOption($propcatO->getVar('id'),$propcatO->getVar('title'));
}
$types = $proptypevalueH->getObjects();

$form->addElement($prop_typevalue_el = new XoopsFormSelect(_MD_PROP_TYPEVALUE, "prop_typevalue"));						
foreach ($types as $type){
	$prop_typevalue_el->addOption($type['id'],$type['name']);
}

$form->addElement(new XoopsFormButton('', 'createbtn', _NEW,'submit'));
echo $form->render();



?>